
{extend name="common/layout" /}

{block name="title"}重量单位{if !empty($id)}修改{else/}添加{/if}{/block}
{block name="content"}
<div id="content">

    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form-create" data-toggle="tooltip" title="保存" class="btn btn-primary">
                    <i class="fa fa-save"></i>
                </button>
                <a href="{:url('index')}" data-toggle="tooltip" title="取消" class="btn btn-default">
                    <i class="fa fa-reply"></i>
                </a>
            </div>
            <h1>重量单位{if !empty($id)}修改{else/}添加{/if}</h1>
            <ul class="breadcrumb">
                <li>
                    <a href="/back/site/index.html">首页</a>
                </li>
                <li>
                    <a href="/back/brand/index.html">重量单位</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="container-fluid">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">
                    <i class="fa fa-pencil"></i>
                    重量单位{if !empty($id)}修改{else/}添加{/if}
                </h3>
            </div>
            <div class="panel-body">
                <form action="{:url('set')}" method="post" enctype="multipart/form-data" id="form-create"
                      class="form-horizontal">
                    {if !empty($id)}<input type="hidden" value="{$id}" name="id" />{/if}

                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#tab-general" data-toggle="tab">基本信息</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="tab-general">

                                    <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-title">名称</label>
            <div class="col-sm-10">
                <input type="text" name="title" value="{$info.title|default=''}" placeholder="名称"
                       id="input-title" class="form-control"/>
                {present name="msg.title"}
                <label class="text-danger" id="input-title-error" for="input-title">{$msg.title}</label>
                {/present}

            </div>
        </div>        <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-sort">排序</label>
            <div class="col-sm-10">
                <input type="text" name="sort" value="{$info.sort|default=''}" placeholder="排序"
                       id="input-sort" class="form-control"/>
                {present name="msg.sort"}
                <label class="text-danger" id="input-sort-error" for="input-sort">{$msg.sort}</label>
                {/present}

            </div>
        </div>

                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
